laravel enum migration example

74

Laravel Migration - Update Enum Options -

DB::statement("ALTER TABLE users CHANGE COLUMN permissions permissions ENUM('admin', 'user', 'candidate') NOT NULL DEFAULT 'user'");

Comments

Submit
0 Comments